package org.itboys.weixin.tools;

/**
 * js config 注入权限接口配置时的签名
 * @author ok
 *
 */
public class SignTool {
	private String timestamp;
	private String  noncestr;
	private String sign;
	private String appId;
	
	public SignTool(){}
	
	public SignTool(String appId){
		this.timestamp = Long.toString(System.currentTimeMillis()/1000);
		this.noncestr = RandomUtils.getClearRandomStr(16);
		this.appId = appId;
	}
	
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getNoncestr() {
		return noncestr;
	}
	public void setNoncestr(String noncestr) {
		this.noncestr = noncestr;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
}
